package ExtendsBlogDemo;

public class Dog extends Animal{
        public void bark () {
            System.out.println("汪汪叫");
        }
}
class Run {
    public static void main(String[] args) {
        Dog dog = new Dog();
        System.out.println(dog.age=10);
        System.out.println(dog.name="小白");
        System.out.println(dog.color="白色");
        System.out.println(dog.weight=20.4);
        dog.eat();
        dog.sleep();
        dog.walk();
    }
}